package com.spic.business.accident.interevents.rectificationplan.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.business.common.core.workflow.WorkFlowEntity;
import com.spic.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 内部事件整改计划对象 internal_incident_rectification_plan
 * 
 * @author 任翔
 * @date 2021-12-01
 */
public class InternalIncidentRectificationPlan extends WorkFlowEntity
{
    private static final long serialVersionUID = 1L;

    /** di 主键 */
    private Long id;

    /** 公司 */
    private String company;

    /** 整改计划 */
    @Excel(name = "整改计划")
    private String rectificationPlan;

    /** 事件名称 */
    @Excel(name = "事件名称")
    private String eventName;

    /** 事件编号 */
    @Excel(name = "事件编号")
    private String eventNumber;

    /** 责任单位 */
    private String dutyDept;

    /** 事故类型 */
    @Excel(name = "事故类型")
    private String accidentType;

    /** 编制时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "编制时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date compileTime;

    /** 安全编辑人员 */
    private String safetyEditPersonnel;

    /** 安全编辑时间 */
    private Date safetyEditTime;

    /** 安全措施 */
    private String securityMeasures;

    /** 组织编辑人员 */
    private String orgEditPersonnel;

    /** 组织编辑时间 */
    private Date orgEditTime;

    /** 组织措施 */
    private String orgMeasures;

    /** 技术编辑人员 */
    private String technologyEditPersonnel;

    /** 技术编辑时间 */
    private Date technologyEditTime;

    /** 技术措施 */
    private String technologyMeasures;

    /** 附件地址 */
    private String fileUrl;

    /** 状态 */
    @Excel(name = "状态")
    private String planStatus;

    /** 备注 */
    private String remrk;

    /** 内部事件整改计划反措措施与班长关联信息 */
    private List<InternalEventsCounterMeasures> internalEventsCounterMeasuresList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCompany(String company) 
    {
        this.company = company;
    }

    public String getCompany() 
    {
        return company;
    }
    public void setRectificationPlan(String rectificationPlan) 
    {
        this.rectificationPlan = rectificationPlan;
    }

    public String getRectificationPlan() 
    {
        return rectificationPlan;
    }
    public void setEventName(String eventName) 
    {
        this.eventName = eventName;
    }

    public String getEventName() 
    {
        return eventName;
    }
    public void setEventNumber(String eventNumber) 
    {
        this.eventNumber = eventNumber;
    }

    public String getEventNumber() 
    {
        return eventNumber;
    }
    public void setDutyDept(String dutyDept) 
    {
        this.dutyDept = dutyDept;
    }

    public String getDutyDept() 
    {
        return dutyDept;
    }
    public void setAccidentType(String accidentType) 
    {
        this.accidentType = accidentType;
    }

    public String getAccidentType() 
    {
        return accidentType;
    }
    public void setCompileTime(Date compileTime) 
    {
        this.compileTime = compileTime;
    }

    public Date getCompileTime() 
    {
        return compileTime;
    }
    public void setSafetyEditPersonnel(String safetyEditPersonnel) 
    {
        this.safetyEditPersonnel = safetyEditPersonnel;
    }

    public String getSafetyEditPersonnel() 
    {
        return safetyEditPersonnel;
    }
    public void setSafetyEditTime(Date safetyEditTime) 
    {
        this.safetyEditTime = safetyEditTime;
    }

    public Date getSafetyEditTime() 
    {
        return safetyEditTime;
    }
    public void setSecurityMeasures(String securityMeasures) 
    {
        this.securityMeasures = securityMeasures;
    }

    public String getSecurityMeasures() 
    {
        return securityMeasures;
    }
    public void setOrgEditPersonnel(String orgEditPersonnel) 
    {
        this.orgEditPersonnel = orgEditPersonnel;
    }

    public String getOrgEditPersonnel() 
    {
        return orgEditPersonnel;
    }
    public void setOrgEditTime(Date orgEditTime) 
    {
        this.orgEditTime = orgEditTime;
    }

    public Date getOrgEditTime() 
    {
        return orgEditTime;
    }
    public void setOrgMeasures(String orgMeasures) 
    {
        this.orgMeasures = orgMeasures;
    }

    public String getOrgMeasures() 
    {
        return orgMeasures;
    }
    public void setTechnologyEditPersonnel(String technologyEditPersonnel) 
    {
        this.technologyEditPersonnel = technologyEditPersonnel;
    }

    public String getTechnologyEditPersonnel() 
    {
        return technologyEditPersonnel;
    }
    public void setTechnologyEditTime(Date technologyEditTime) 
    {
        this.technologyEditTime = technologyEditTime;
    }

    public Date getTechnologyEditTime() 
    {
        return technologyEditTime;
    }
    public void setTechnologyMeasures(String technologyMeasures) 
    {
        this.technologyMeasures = technologyMeasures;
    }

    public String getTechnologyMeasures() 
    {
        return technologyMeasures;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getPlanStatus() {
        return planStatus;
    }

    public void setPlanStatus(String planStatus) {
        this.planStatus = planStatus;
    }

    public void setRemrk(String remrk)
    {
        this.remrk = remrk;
    }

    public String getRemrk() 
    {
        return remrk;
    }

    public List<InternalEventsCounterMeasures> getInternalEventsCounterMeasuresList()
    {
        return internalEventsCounterMeasuresList;
    }

    public void setInternalEventsCounterMeasuresList(List<InternalEventsCounterMeasures> internalEventsCounterMeasuresList)
    {
        this.internalEventsCounterMeasuresList = internalEventsCounterMeasuresList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("company", getCompany())
            .append("rectificationPlan", getRectificationPlan())
            .append("eventName", getEventName())
            .append("eventNumber", getEventNumber())
            .append("dutyDept", getDutyDept())
            .append("accidentType", getAccidentType())
            .append("compileTime", getCompileTime())
            .append("safetyEditPersonnel", getSafetyEditPersonnel())
            .append("safetyEditTime", getSafetyEditTime())
            .append("securityMeasures", getSecurityMeasures())
            .append("orgEditPersonnel", getOrgEditPersonnel())
            .append("orgEditTime", getOrgEditTime())
            .append("orgMeasures", getOrgMeasures())
            .append("technologyEditPersonnel", getTechnologyEditPersonnel())
            .append("technologyEditTime", getTechnologyEditTime())
            .append("technologyMeasures", getTechnologyMeasures())
            .append("fileUrl", getFileUrl())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remrk", getRemrk())
            .append("internalEventsCounterMeasuresList", getInternalEventsCounterMeasuresList())
            .toString();
    }
}
